package com.tongtong.middleware.vo.params;

import com.tongtong.middleware.vo.AuditTypeEnum;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AuditRequest {

	/**
	 * 审核类型
	 */
	@NotNull(message = "AuditTypeEnum is not null")
	private AuditTypeEnum type;
	/**
	 * 审核目标，type = TEXT_CONTENT target = 纯文本内容 审核目标
	 * 
	 * type = TEXT_OBJECT target = 桶下的目标文件地址
	 */
	@NotBlank(message = "target is empty")
	private String target;

	public void setType(AuditTypeEnum type) {
		this.type = type;
	}

	public void setTarget(String target) {
		this.target = target;
	}
}
